import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { EventsModule } from './events/events.module';
import { ConfigModule } from '@nestjs/config';

@Module({
  imports: [ConfigModule.forRoot({
    isGlobal: true,
    envFilePath: [`.env.${process.env.NODE_ENV}`, '.env'],
  }), EventsModule],
  controllers: [AppController],
  providers: [AppService],
  // providers: [{provide: "appService", useClass: AppService}],
})
export class AppModule {}
